package com.liruo.srpingframework.dataaccess.transaction.classlevel;

import org.springframework.data.repository.CrudRepository;

public class TransactionClassLevelParent {
  public <T> void inheritedMethod(T entity){
    getRepository().save(entity);
    throw new RuntimeException("inheritedMethod error");
  }

  public <T> void needOverrideMethod(T entity){
    getRepository().save(entity);
    throw new RuntimeException("needOverrideMethod error");
  }
  protected <T, ID> CrudRepository<T, ID> getRepository(){return null;}
}
